﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BCDto.Sim.Company.Department
{
    /// <summary>
    /// 企业部门管理请求模型
    /// </summary>
    public class DepartmentRequestDto
    {
        /// <summary>
        /// 所属部门Id
        /// </summary>
        public int? ParentDepartmentId { get; set; }
        /// <summary>
        /// 公司Id
        /// </summary>
        public int CompanyId { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        [Required(ErrorMessage = "部门名称为必填项")]
        [StringLength(100, ErrorMessage = "请勿输入超过 100 个字符")]
        public string DepartmentName { get; set; }
        /// <summary>
        /// 部门成立时间
        /// </summary>
        [Required(ErrorMessage = "部门成立时间为必填项")]
        public DateTime DepartmentCreateTime { get; set; }
        /// <summary>
        /// 部门简介
        /// </summary>
        public string DepartmentIntroduction { get; set; }
    }
}
